<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,shrink-to-fit=no">
    <title>用户注册界面</title>
    <link th:href="@{/source/css/bootstrap.min.css}" href="../source/css/bootstrap.min.css" rel="stylesheet">
    <link th:href="@{/source/css/signin.css}" href="../source/css/signin.css" rel="stylesheet">
</head>
<body class="text-center">
<!--  用户注册form表单 -->
<form method="post" enctype="multipart/form-data" th:action="@{/user/doRegister}" class="form-signin">
    <img class="mb-4" th:src="@{/source/img/login.jpg}" src="../source/img/login.jpg" width="72" height="72">
    <h1 class="h3 mb-3 font-weight-normal">歌手报名</h1>
    <input type="text" class="form-control" name="username"
           placeholder="用户名" required="" autofocus="">
    <input type="password" class="form-control" name="password"
           placeholder="密码" required="">
    <input type="file" class="form-control" name="myfile"
           placeholder="头像" required="">
    <input type="text" class="form-control" name="phone"
           placeholder="电话" required="">
    <button class="btn btn-lg btn-primary btn-block" type="submit">报名</button>
    <p>已有账号?点击<a th:href="@{/user/login}">登录</a></p>
    <p><a th:href="@{/index}">首页</a></p>
    <p class="mt-5 mb-3 text-muted"><span th:text="${#dates.year(#dates.createNow())}">2018</span>-<span
            th:text="${#dates.year(#dates.createNow())+1}">2019</span></p>
</form>
</body>
</html>
